/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package vn.edu.hcmus.fit.se.mdd.mbuid.adaptedaui2android7cui;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Input Field Implementation</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * @see vn.edu.hcmus.fit.se.mdd.mbuid.adaptedaui2android7cui.Adaptedaui2android7cuiPackage#getInputFieldImplementation()
 * @model
 * @generated
 */
public enum InputFieldImplementation implements Enumerator {
	/**
	 * The '<em><b>Spinner</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #SPINNER_VALUE
	 * @generated
	 * @ordered
	 */
	SPINNER(0, "Spinner", "Spinner"),

	/**
	 * The '<em><b>Auto Complete Text View</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #AUTO_COMPLETE_TEXT_VIEW_VALUE
	 * @generated
	 * @ordered
	 */
	AUTO_COMPLETE_TEXT_VIEW(1, "AutoCompleteTextView", "AutoCompleteTextView"),

	/**
	 * The '<em><b>Edit Text</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #EDIT_TEXT_VALUE
	 * @generated
	 * @ordered
	 */
	EDIT_TEXT(2, "EditText", "EditText"),

	/**
	 * The '<em><b>Seek Bar</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #SEEK_BAR_VALUE
	 * @generated
	 * @ordered
	 */
	SEEK_BAR(3, "SeekBar", "SeekBar"),

	/**
	 * The '<em><b>Time Picker</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #TIME_PICKER_VALUE
	 * @generated
	 * @ordered
	 */
	TIME_PICKER(4, "TimePicker", "TimePicker"),

	/**
	 * The '<em><b>Digital Clock</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #DIGITAL_CLOCK_VALUE
	 * @generated
	 * @ordered
	 */
	DIGITAL_CLOCK(5, "DigitalClock", "DigitalClock"),

	/**
	 * The '<em><b>Analog Clock</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #ANALOG_CLOCK_VALUE
	 * @generated
	 * @ordered
	 */
	ANALOG_CLOCK(6, "AnalogClock", "AnalogClock"),

	/**
	 * The '<em><b>Date Picker</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #DATE_PICKER_VALUE
	 * @generated
	 * @ordered
	 */
	DATE_PICKER(7, "DatePicker", "DatePicker");

	/**
	 * The '<em><b>Spinner</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>Spinner</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #SPINNER
	 * @model name="Spinner"
	 * @generated
	 * @ordered
	 */
	public static final int SPINNER_VALUE = 0;

	/**
	 * The '<em><b>Auto Complete Text View</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>Auto Complete Text View</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #AUTO_COMPLETE_TEXT_VIEW
	 * @model name="AutoCompleteTextView"
	 * @generated
	 * @ordered
	 */
	public static final int AUTO_COMPLETE_TEXT_VIEW_VALUE = 1;

	/**
	 * The '<em><b>Edit Text</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>Edit Text</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #EDIT_TEXT
	 * @model name="EditText"
	 * @generated
	 * @ordered
	 */
	public static final int EDIT_TEXT_VALUE = 2;

	/**
	 * The '<em><b>Seek Bar</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>Seek Bar</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #SEEK_BAR
	 * @model name="SeekBar"
	 * @generated
	 * @ordered
	 */
	public static final int SEEK_BAR_VALUE = 3;

	/**
	 * The '<em><b>Time Picker</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>Time Picker</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #TIME_PICKER
	 * @model name="TimePicker"
	 * @generated
	 * @ordered
	 */
	public static final int TIME_PICKER_VALUE = 4;

	/**
	 * The '<em><b>Digital Clock</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>Digital Clock</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #DIGITAL_CLOCK
	 * @model name="DigitalClock"
	 * @generated
	 * @ordered
	 */
	public static final int DIGITAL_CLOCK_VALUE = 5;

	/**
	 * The '<em><b>Analog Clock</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>Analog Clock</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #ANALOG_CLOCK
	 * @model name="AnalogClock"
	 * @generated
	 * @ordered
	 */
	public static final int ANALOG_CLOCK_VALUE = 6;

	/**
	 * The '<em><b>Date Picker</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>Date Picker</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #DATE_PICKER
	 * @model name="DatePicker"
	 * @generated
	 * @ordered
	 */
	public static final int DATE_PICKER_VALUE = 7;

	/**
	 * An array of all the '<em><b>Input Field Implementation</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final InputFieldImplementation[] VALUES_ARRAY =
		new InputFieldImplementation[] {
			SPINNER,
			AUTO_COMPLETE_TEXT_VIEW,
			EDIT_TEXT,
			SEEK_BAR,
			TIME_PICKER,
			DIGITAL_CLOCK,
			ANALOG_CLOCK,
			DATE_PICKER,
		};

	/**
	 * A public read-only list of all the '<em><b>Input Field Implementation</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<InputFieldImplementation> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Input Field Implementation</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static InputFieldImplementation get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			InputFieldImplementation result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Input Field Implementation</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static InputFieldImplementation getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			InputFieldImplementation result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Input Field Implementation</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static InputFieldImplementation get(int value) {
		switch (value) {
			case SPINNER_VALUE: return SPINNER;
			case AUTO_COMPLETE_TEXT_VIEW_VALUE: return AUTO_COMPLETE_TEXT_VIEW;
			case EDIT_TEXT_VALUE: return EDIT_TEXT;
			case SEEK_BAR_VALUE: return SEEK_BAR;
			case TIME_PICKER_VALUE: return TIME_PICKER;
			case DIGITAL_CLOCK_VALUE: return DIGITAL_CLOCK;
			case ANALOG_CLOCK_VALUE: return ANALOG_CLOCK;
			case DATE_PICKER_VALUE: return DATE_PICKER;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private InputFieldImplementation(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //InputFieldImplementation
